public class jiugongge {
    public static void main(String[] args) {
        int[][] magicSquare = new int[3][3];

        magicSquare[1][1] = 5;

        magicSquare[0][0] = 1;
        magicSquare[0][2] = 9;

        magicSquare[2][0] = 7;
        magicSquare[2][2] = 3;

        magicSquare[0][1] = 8;
        magicSquare[2][1] = 4;

        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
                System.out.print(magicSquare[i][j] + " ");
            }
            System.out.println();
        }
    }
}
